Integrand size = 13, antiderivative size = 37 \[ \int \sqrt {a+b \cos (x)} \tan (x) \, dx=2 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a+b \cos (x)}}{\sqrt {a}}\right )-2 \sqrt {a+b \cos (x)} \]
[Out]
Time = 0.06 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {2800, 52, 65, 213} \[ \int \sqrt {a+b \cos (x)} \tan (x) \, dx=2 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a+b \cos (x)}}{\sqrt {a}}\right )-2 \sqrt {a+b \cos (x)} \]
[In]
[Out]
Rule 52
Rule 65
Rule 213
Rule 2800
Rubi steps \begin{align*} \text {integral}& = -\text {Subst}\left (\int \frac {\sqrt {a+x}}{x} \, dx,x,b \cos (x)\right ) \\ & = -2 \sqrt {a+b \cos (x)}-a \text {Subst}\left (\int \frac {1}{x \sqrt {a+x}} \, dx,x,b \cos (x)\right ) \\ & = -2 \sqrt {a+b \cos (x)}-(2 a) \text {Subst}\left (\int \frac {1}{-a+x^2} \, dx,x,\sqrt {a+b \cos (x)}\right ) \\ & = 2 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a+b \cos (x)}}{\sqrt {a}}\right )-2 \sqrt {a+b \cos (x)} \\ \end{align*}
Time = 0.01 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.00 \[ \int \sqrt {a+b \cos (x)} \tan (x) \, dx=2 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a+b \cos (x)}}{\sqrt {a}}\right )-2 \sqrt {a+b \cos (x)} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(122\) vs. \(2(29)=58\).
Time = 2.23 (sec) , antiderivative size = 123, normalized size of antiderivative = 3.32
method | result | size |
default | \(-2 \sqrt {-2 b \left (\sin ^{2}\left (\frac {x}{2}\right )\right )+a +b}+\sqrt {a}\, \ln \left (\frac {4 \cos \left (\frac {x}{2}\right ) b \sqrt {2}+4 \sqrt {a}\, \sqrt {-2 b \left (\sin ^{2}\left (\frac {x}{2}\right )\right )+a +b}+4 a -4 b}{2 \cos \left (\frac {x}{2}\right )-\sqrt {2}}\right )+\sqrt {a}\, \ln \left (-\frac {4 \left (\cos \left (\frac {x}{2}\right ) b \sqrt {2}-\sqrt {a}\, \sqrt {-2 b \left (\sin ^{2}\left (\frac {x}{2}\right )\right )+a +b}-a +b \right )}{2 \cos \left (\frac {x}{2}\right )+\sqrt {2}}\right )\) | \(123\) |
[In]
[Out]
none
Time = 0.40 (sec) , antiderivative size = 109, normalized size of antiderivative = 2.95 \[ \int \sqrt {a+b \cos (x)} \tan (x) \, dx=\left [\frac {1}{2} \, \sqrt {a} \log \left (-\frac {b^{2} \cos \left (x\right )^{2} + 8 \, a b \cos \left (x\right ) + 4 \, {\left (b \cos \left (x\right ) + 2 \, a\right )} \sqrt {b \cos \left (x\right ) + a} \sqrt {a} + 8 \, a^{2}}{\cos \left (x\right )^{2}}\right ) - 2 \, \sqrt {b \cos \left (x\right ) + a}, -\sqrt {-a} \arctan \left (\frac {2 \, \sqrt {b \cos \left (x\right ) + a} \sqrt {-a}}{b \cos \left (x\right ) + 2 \, a}\right ) - 2 \, \sqrt {b \cos \left (x\right ) + a}\right ] \]
[In]
[Out]
\[ \int \sqrt {a+b \cos (x)} \tan (x) \, dx=\int \sqrt {a + b \cos {\left (x \right )}} \tan {\left (x \right )}\, dx \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.24 \[ \int \sqrt {a+b \cos (x)} \tan (x) \, dx=-\sqrt {a} \log \left (\frac {\sqrt {b \cos \left (x\right ) + a} - \sqrt {a}}{\sqrt {b \cos \left (x\right ) + a} + \sqrt {a}}\right ) - 2 \, \sqrt {b \cos \left (x\right ) + a} \]
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 34, normalized size of antiderivative = 0.92 \[ \int \sqrt {a+b \cos (x)} \tan (x) \, dx=-\frac {2 \, a \arctan \left (\frac {\sqrt {b \cos \left (x\right ) + a}}{\sqrt {-a}}\right )}{\sqrt {-a}} - 2 \, \sqrt {b \cos \left (x\right ) + a} \]
[In]
[Out]
Timed out. \[ \int \sqrt {a+b \cos (x)} \tan (x) \, dx=\int \mathrm {tan}\left (x\right )\,\sqrt {a+b\,\cos \left (x\right )} \,d x \]
[In]
[Out]